import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import '@/assets/element-plus/index.css'
import '@/assets/styles/reset.less'
import '@/assets/styles/micro.less'
import { createApp } from 'vue'
import App from './App.vue'
import { store } from './store'
import router from './router/index'
import { setUcTokenAsCookie } from '@/utils/utils'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router)
  .use(store)
  .use(ElementPlus)
  .mount('#v3-project')

// 同步cookie信息
setUcTokenAsCookie()
